package com.csx.base.design.behavior.state;

/**
 * @author cuisongxu
 * @date 2022/10/8 12:01
 */
public interface State {

    /**
     * 切换到绿灯
     * @param trafficLight
     */
    void switchToGreen(TrafficLight trafficLight);

    /**
     * 切换到红灯
     * @param trafficLight
     */
    void switchToRed(TrafficLight trafficLight);

    /**
     * 切换到黄灯
     * @param trafficLight
     */
    void switchToYellow(TrafficLight trafficLight);
}
